package com.yike.user.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 用户表
 *
 * @author Sakura
 * @since 2023-08-14
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "代理商绑定手机号参数")
public class AgentBindPhoneParam implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "token", required = true)
    private String token;

    @ApiModelProperty("手机号 type为3必传")
    @Pattern(regexp = "^$|^((13[0-9])|(15[^4])|(18[0-9])|(17[0-8])|(16[0-8])|(147))\\d{8}$", message = "手机号码格式错误")
    private String mobile;

    @ApiModelProperty("短信验证码 type为3必传")
    private String smsCode;

}
